import { validateMap } from '@/util/global'
export default {
  tabs: true,
  tabsActive: 1,
  emptyBtn: false,
  group: [
    {
      label: '修改密码',
      prop: 'password',
      column: [{
        label: '原密码',
        span: 12,
        row: true,
        type: 'password',
        prop: 'oldPassword',
        placeholder: '请输入原密码'
      }, {
        label: '新密码',
        span: 12,
        row: true,
        type: 'password',
        prop: 'newPassword',
        placeholder: '请输入新密码',
        rules: [validateMap.password, validateMap.requireChange],
      }, {
        label: '确认密码',
        span: 12,
        row: true,
        type: 'password',
        prop: 'newPassword1',
        placeholder: '请输入确认密码',
        rules: [validateMap.password, validateMap.requireChange],
      }],
    },
    {
      label: '个人信息',
      prop: 'info',
      column: [
        {
          label: '姓名',
          span: 12,
          row: true,
          placeholder: '姓名',
          prop: 'realName',
          disabled: true,
        }, {
          label: '用户名',
          span: 12,
          row: true,
          placeholder: '用户名',
          disabled: true,
          prop: 'name'
        }, {
          label: '手机号',
          span: 12,
          row: true,
          placeholder: '手机号',
          disabled: true,
          prop: 'phone',
        }, {
          label: '邮箱',
          prop: 'email',
          span: 12,
          row: true,
          disabled: true,
          placeholder: '邮箱',
        }]
    },
  ],
}
